package com.sxhalo.manage.map;

/**
 * TaskContactsId entity. @author MyEclipse Persistence Tools
 */

public class TaskContactsId implements java.io.Serializable {

	// Fields

	private Integer taskId;
	private Integer contactId;

	// Constructors

	/** default constructor */
	public TaskContactsId() {
	}

	/** full constructor */
	public TaskContactsId(Integer taskId, Integer contactId) {
		this.taskId = taskId;
		this.contactId = contactId;
	}

	// Property accessors

	public Integer getTaskId() {
		return this.taskId;
	}

	public void setTaskId(Integer taskId) {
		this.taskId = taskId;
	}

	public Integer getContactId() {
		return this.contactId;
	}

	public void setContactId(Integer contactId) {
		this.contactId = contactId;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TaskContactsId))
			return false;
		TaskContactsId castOther = (TaskContactsId) other;

		return ((this.getTaskId() == castOther.getTaskId()) || (this
				.getTaskId() != null && castOther.getTaskId() != null && this
				.getTaskId().equals(castOther.getTaskId())))
				&& ((this.getContactId() == castOther.getContactId()) || (this
						.getContactId() != null
						&& castOther.getContactId() != null && this
						.getContactId().equals(castOther.getContactId())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getTaskId() == null ? 0 : this.getTaskId().hashCode());
		result = 37 * result
				+ (getContactId() == null ? 0 : this.getContactId().hashCode());
		return result;
	}

}